<?php

namespace app\api\validate;

use think\Validate;

class Enter extends Validate
{
    protected $rule = [
        'shenfen'                => ['require'],
        'enter_address_details'  => ['require'],
        'name'                   => ['require'],
        'sex'                    => ['require'],
        'birth_time'             => ['require'],
        'id_num'                 => ['require'],
        'phone'                  => ['require'],
        'census_address'         => ['require'],
        'census_address_details' => ['require']
    ];

    protected $message  =   [
        'shenfen.require'                => '申请身份不能位空',
        'enter_address_details.require'  => '申请地址详情不能位空',
        'name.require'                   => '真实姓名不能为空',
        'sex.require'                    => '性别不能位空',
        'birth_time.require'             => '出生年月不能为空',
        'id_num.require'                 => '身份证号不能位空',
        'phone.require'                  => '联系电话不能为空',
        'census_address.require'         => '户籍所在地不能位空',
        'census_address_details.require' => '户籍地详细地址不能为空'
    ];
}
